package com.example.file.service;

import com.example.file.model.SysFile;
import com.example.file.response.Response;
import org.springframework.core.io.InputStreamResource;
import org.springframework.core.io.Resource;
import org.springframework.http.ResponseEntity;
import org.springframework.http.codec.multipart.FilePart;
import reactor.core.publisher.Mono;

import java.util.List;

public interface SysFileService {
    ResponseEntity<Resource> downloadFile(String path, Boolean handleFlag);

    List<SysFile> listFiles(String path);

    Mono<Response<?>> uploadFile(FilePart file, String path);
}
